{block name="style"}
{/block}
{block name="content"}
<form class="layui-form" action="{:url('/order/manager/again')}" method="post" id="order-again">
    <input type="hidden" name="ids" value="{$order.order_id}">
    <div class="info-header">
        <div class="layui-row">
            <div class="layui-col-xs3">
                <label class="layui-form-label">平台</label>
                <div class="layui-input-block">
                    <input type="text" value="{$order.platform_name}" disabled class="layui-input">
                </div>
            </div>
            <div class="layui-col-xs3">
                <label class="layui-form-label">账号</label>
                <div class="layui-input-block">
                    <input type="text" value="{$order.account.username}" disabled class="layui-input">
                </div>
            </div>
            <div class="layui-col-xs3">
                <label class="layui-form-label">订单号</label>
                <div class="layui-input-block">
                    <input type="text" value="{$order.order_no}" disabled class="layui-input">
                </div>
            </div>
            <div class="layui-col-xs3">
                <label class="layui-form-label">下单日期</label>
                <div class="layui-input-block">
                    <input type="text" value="{$order.order_source_create_time}" disabled class="layui-input">
                </div>
            </div>
        </div>
    </div>
    <div class="info-body">
        <div class="layui-row" style="margin-top: 30px;">
            <h2>商品详情</h2>
            <table class="layui-table text-center">
                <thead>
                <tr>
                    <th width="100">图片</th>
                    <th width="150">SKU</th>
                    <th>购买数量</th>
                    <th>单价</th>
                    <th width="150">退货数量</th>
                    <th>备注</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {foreach $order->detail as $detail}
                <tr>
                    <td><img src="{$detail.image_url}"></td>
                    <td>
                        <span class="copy-text">{$detail.sku}</span>
                        <input type="hidden" value="{$detail.sku}" name="sku[]">
                    </td>
                    <td width="150">{$detail.qty}</td>
                    <td width="150">{$detail.price|abs}</td>
                    <td><input type="number" value="{$detail.return_qty?:$detail.qty}" name="qty[]" class="layui-input"></td>
                    <td>{$detail.remark}</td>
                    <td><a class="layui-btn layui-btn-sm layui-bg-red remove-tr-btn">删除</a></td>
                </tr>
                {/foreach}
                </tbody>
            </table>
        </div>
    </div>
</form>
{/block}
{block name="script"}
{/block}